{{useCss "/app-pages/css/pc/main/articlemanager.scss"}}
<div class="pagetitle">文章内容及板块管理</div>
<div class="box">
    <div class="modulebox">
        <h3>文章板块</h3>
        <div class="inbox">
            <div class="item">
                <href to="/main/articlemanager.html">所有</href>
            </div>
            {{#if $Cache.main.articlemanager.section_list.length}}
                {{#each $Cache.main.articlemanager.section_list}}
                    <div class="item">
                        {{#if $Cache.main.articlemanager.openeditormodule}}
                            <input type="text" class="input" placeholder="模块名称" bind-value="{{name}}" bind-input="{{'name'}}"/>
                            <div class="method">
                                <div class="m" event-click="{{'$Top.$Event.main.articlemanager.editormodule'}}">确定</div>
                                <div class="m" event-click="{{'$Top.$Event.main.articlemanager.openeditormodule'}}">取消</div>
                            </div>
                            {{#else}}
                                <a event-click="{{'$Top.$Event.main.articlemanager.changemodule'}}">{{name}}</a>
                                <div class="method">
                                    <div class="m" event-click="{{'$Top.$Event.main.articlemanager.openeditormodule'}}">修改</div>
                                    <div class="m" event-click="{{'$Top.$Event.main.articlemanager.deletemodule'}}">删除</div>
                                </div>
                            {{/if}}
                        </div>
                    {{/each}}
                    {{#else}}
                        <div class="item">
                            <a>还没有文章板块</a>
                        </div>
                    {{/if}}
                </div>
            </div>
            <div class="articlebox">
                <h3>文章列表</h3>
                <div class="list">
                    {{#if $Cache.main.articlemanager.article_list.data.length}}
                        {{#each $Cache.main.articlemanager.article_list.data}}
                            <div class="item">
                                <div class="t">{{title}}</div>
                                <div class="t">
                                    {{#Time updateTime,"YYYY/MM/DD hh:mm:ss"}}
                                    </div>
                                    <div class="method">
                                        <div class="m" event-click="{{'$Top.$Event.main.articlemanager.openeditorarticle'}}">编辑</div>
                                        <div class="m" event-click="{{'$Top.$$Event.main.articlemanager.deletearticle'}}">删除</div>
                                    </div>
                                </div>
                            {{/each}}
                            {{#else}}
                                <div class="item">
                                    <div>还没有文章</div>
                                </div>
                            {{/if}}
                        </div>
                    </div>
                </div>
